package com.ruoyi.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.course.domain.ExamClass;
import com.ruoyi.course.vo.ExamClassVo;
import com.ruoyi.course.vo.ExamClassDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考试班次Mapper接口
 *
 * @author Tellsea
 * @date 2025-09-26
 */
public interface ExamClassMapper extends BaseMapper<ExamClass> {

    Page<ExamClassVo> queryList(Page<?> page, @Param("entity") ExamClassVo entity);

    List<ExamClassVo> queryList(@Param("entity") ExamClassVo entity);

    ExamClassVo queryById(@Param("id") Long id);

    ExamClassDetailVo queryDetailById(@Param("id") Long id);

    Page<ExamClassVo> queryUserClassList(Page<?> page, @Param("entity") ExamClassVo entity, @Param("userId") Long userId);

}
